package chamber.dicegame;

import java.util.Random;

/**
 * Created by Gerardo on 1/17/14.
 */
public class Dice {
    public static String turn = null;

    synchronized public static String getTurn() {
        return turn;
    }

    synchronized public static void setTurn(String player) {
        turn = player;
    }

    public static void start(String player) {
        turn = player;
    }

    private Dice() {
    }

    private static final Random random = new Random();

    public static int roll() {
        return random.nextInt(6) + 1;
    }
}
